<?php
/**
 * @copyright meila.com
 * @author shaopu@
 * @name
 * @param
 *         $xxx = 作用
 * @static
 *         XXX = 作用
 *
 *
 */
include ('../../__global.php');

class register extends ml_controller
{
    public function initParam()
    {}
    public function checkParam()
    {
        /**
         * @todo 已经登录跳到我的首页
         */
        if($this->check_permission(ML_PERMISSION_LOGIN_ONLY))
             $this->redirect(ML_PAGE_SELFINDEX);


    }
    
    public function main()
    {
        ml_tool_actionlog::add_other_action($this->__visitor['uid'] , ML_SINAACTCODE_VIEW_REGI);
        
        //安全码
        $data = array(
            'scode' => ml_tool_securecode::init_scode(),
        );
        $this->set_page_title2("注册");
        $this->page_output('user::register' , $data);
    }
}
new register();